<?php
/**
 * Header Template
 *
 * The header template is generally used on every page of your site. Nearly all other
 * templates call it somewhere near the top of the file. It is used mostly as an opening
 * wrapper, which is closed with the footer.php file. It also executes key functions needed
 * by the theme, child themes, and plugins. 
 *
 * @package dkret3
 */

$data = wp_get_theme();
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
	<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'dkret' ), max( $paged, $page ) );

	?></title>
    <meta name="template" content="<?php echo esc_attr( $data['Title'] ); ?>" />
    <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen, projection" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <?php if ( is_singular() && get_option('thread_comments') ) wp_enqueue_script( 'comment-reply' ); ?> 
    <?php wp_head(); ?>

</head>

<body <?php body_class(); ?>>

<?php /* dkret3 Hook */ do_action( 'dkret_before_html' ); ?>

<div id="wrapper" class="hfeed">

    <?php /* dkret3 Hook */ do_action( 'dkret_before_header' ); ?>

    <div id="header"<?php if( get_dkret_option( 'header_link' ) ) : ?> onclick="location.href='<?php echo home_url(); ?>'"<?php endif; ?> role="banner">

        <?php /* dkret3 Hook */ do_action( 'dkret_header' ); ?>

    </div>
  
    <?php /* dkret3 Hook */ do_action( 'dkret_after_header' ); ?>